package source.events.action;

import source.model.DataHandler;
import source.model.type.ActionResult;
import source.model.Position;

public class ResetCursor implements Action{

	private int playerID;
	
	public ResetCursor(int playerID)
	{
		this.playerID = playerID;
	}
	
	public ActionResult execute(DataHandler dh)
	{
		Position p = dh.positionQuery(dh.getCurrentSelectionID());
		dh.setCurrentPosition(p);
		return ActionResult.SUCCESS;
	}
}
